<?php
error_reporting(0);
header('Content-type: text/html; charset=UTF-8');
require "build\phpfun.phar";
$phpfun = new phpfun();

//获取phar版本信息,int $upgrade 是否升级 0只检查不升级 1检查并升级
print_r($phpfun->Version());

//获取所有APP信息
print_r($phpfun->App());

//安装app，参数：app名称
echo $phpfun->AppInstall("UploadFile");

//卸载app，参数：app名称
echo $phpfun->AppDel("UploadFile");

//调用自定义类，测试是否运行成功
$app = $phpfun->mClass("App");
echo $app->run();
